<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>过渡效果</title>
    <style>
.box{
    text-align: center;
    line-height: 100px;
    height: 100px;
    width: 100px;
    margin: 100px auto;
    background-color: yellow;
    transition:transform 5s,width 5s;
}
.box:hover{
    transform: rotate(360deg);
    width: 200px;
}
    </style>
</head>
<body>
    <div class="box">阴阳师</div>
</body>
</html>